package cn.ad.exception;

public class AgencyValidateException extends ValidateException{

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	public static enum ErrorCode implements BaseErrorCode{
		AGENCY_NOTFOUND(60301,"Service.err.agency.not.found"),
		AGENCY_CHANGE_FAIL(60302,"Service.err.agency.change.fail"),
		AGENCY_REPEAT(60303,"Service.err.agency.name.repeat"),
		AGENCY_AMOUNT(60205,"Service.err.agency.amount"),
		AGENCY_NOT_AUTH(60304,"Service.err.agency.not.auth");

		private int value;

		private String desc;

		private ErrorCode(int value, String desc) {
			this.value = value;
			this.desc = desc;
		}

		public int getValue() {
			return value;
		}

		public String getDesc() {
			return desc;
		}
	}

	public AgencyValidateException(BaseErrorCode code) {
		super(code);
	}

	public AgencyValidateException() {
		super();
	}

	public AgencyValidateException(String message, Throwable cause, boolean enableSuppression,
                                   boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public AgencyValidateException(String message, Throwable cause) {
		super(message, cause);
	}

	public AgencyValidateException(String message) {
		super(message);
	}

	public AgencyValidateException(Throwable cause) {
		super(cause);
	}
	
	
}
